Introduction to recursion and recurrence relations